#include <QtGui/QApplication>
#include <QtGui/QLineEdit>
#include <QtGui/QLabel>
#include <QtGui/QVBoxLayout>

#include "Test.h"
#include <iostream>
#include "aSimulation.h"
namespace jcrada {

    void TestA::start(){
        std::cout << "TestA::start()" << std::endl;
    }
    void TestA::stop(){
        std::cout << "TestA::stop()" << std::endl;
    }
    
    void TestB::start(){
        std::cout << "TestB::start()" << std::endl;
    }
    void TestB::stop(){
        std::cout << "TestB::stop()" << std::endl;
    }
    
    
    int mainTest( int argc, char ** argv ) {
//        Simulation::start();
        QApplication q (argc, argv);
        QLineEdit* led_input = new QLineEdit();
        QLabel* lbl_label = new QLabel();
        QObject::connect(led_input, SIGNAL(textChanged(const QString&)), 
                lbl_label, SLOT(setText(const QString&)));
        QWidget widget;
        QVBoxLayout* layout = new QVBoxLayout();
        layout->addWidget(led_input);
        layout->addWidget(lbl_label);
        widget.setLayout(layout);
        widget.show();
        return q.exec();
    }
}
